﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo11
{
    class Class1
    {
        protected int a;
        protected int b;
        public virtual void DisplayResult()
        {
            Console.WriteLine("请输入第一个数");
            a = int.Parse(Console.ReadLine());
            Console.WriteLine("请输入第二个数");
            b = int.Parse(Console.ReadLine());
            
        }

    }
}
